package com.seari.enums;

public enum DistrictEnums {
    HQ(0,"新虹街道,七宝镇,华漕镇"),
    NH(1,"书院镇,南汇新城镇,万祥镇"),
    JD(2,"马陆镇,菊园街道,嘉定镇街道,新成路街道"),
    QP(3,"夏阳街道,盈浦街道,香花桥街道"),
    SJ(4,"中山街道,岳阳街道,方松街道,永丰街道,广富林街道,松江工业区"),
    FX(5,"南桥镇,金汇镇,奉浦街道,西渡街道");

    Integer index;

    String district;

    DistrictEnums() {
    }

    DistrictEnums(Integer index, String district) {
        this.index = index;
        this.district = district;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getDistrict() {
        return district;
    }

    public Integer getDistrictSize() {
        String[] split = district.split(",");
        return split.length;
    }

    public void setDistrict(String district) {
        this.district = district;
    }
}
